<!--
 * @Descripttion: ---
 * @version: v1.0.0.0
 * @Author: 任飞
 * @Date: 2020-07-08 00:42:37
 * @LastEditors: 任飞
 * @LastEditTime: 2020-07-08 01:17:15
--> 
<template>
  <div class="wrap-detail">
    <el-form>
      <el-row :gutter="20">
        <el-col :span="5">
          <el-form-item label="团购编号">{{ dataDetail.groupNo }}</el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="商品名称">{{ dataDetail.itemTitle }}</el-form-item>
        </el-col>
         <el-col :span="5">
          <el-form-item label="团长">{{ dataDetail.leaderNickName }}</el-form-item>
        </el-col>
         <el-col :span="5">
          <el-form-item label="开始时间">{{ dataDetail.startTime }}</el-form-item>
        </el-col>
      </el-row>
       <el-row :gutter="20">
         <el-col :span="5">
          <el-form-item label="目标人数">{{ dataDetail.targetNum }}</el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="实际人数">{{ dataDetail.actNum }}</el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="满员时间">{{ dataDetail.fullTime }}</el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="结束时间">{{ dataDetail.endTime }}</el-form-item>
        </el-col>
      </el-row>
       <el-row :gutter="20">
       <el-col :span="5">
          <el-form-item label="团长利润">{{ dataDetail.profitAmt }}</el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="团购状态">{{ dataDetail.groupStatusName }}</el-form-item>
        </el-col>
       <el-col :span="5">
          <el-form-item label="结算状态">{{ dataDetail.settleStatusName }}</el-form-item>
        </el-col>
         <el-col :span="5">
          <el-form-item label="结算时间">{{ dataDetail.settleTime }}</el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-table v-loading="loading" ref="multipleTable" :data="dataDetail.promGroupDetailResultDtoList" style="width: 100%" border fit highlight-current-row >
      <el-table-column prop="buylerNickName" label="购买人" />
      <el-table-column prop="orderAmt" label="订单金额" />
      <el-table-column prop="payAmt" label="付款金额" />
      <el-table-column prop="hitFlagName" label="是否命中" />
      <el-table-column prop="actReturnAmt" label="返还金额" />
      <el-table-column prop="settleStatusName" label="结算状态" />
      <el-table-column prop="settleTime" label="结算时间" />
    </el-table>
  </div>
</template>
<script>
export default {
  props: {
    example: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      loading: true,
      dataDetail: {}
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {
    const id = this.$route.params.id
    this.getInitData(id)
  },
  methods: {
    getInitData(id) {
      this.$api.fenxiao.promGroup.detail(id).then(res => {
        this.loading = false
        this.dataDetail = res.data
      }).catch(err => {

      })
    }
  }
}
</script>
<style lang='less' scoped>
.wrap-detail {
  padding: 20px 50px;
}
</style>